package watercups.operators;

import templates.Operator;
import watercups.states.WaterCupState;

public class Empty_1to2 implements Operator<WaterCupState>{
        
        public int getOperatorNumber() {
        return 5;
    }

        /*public WaterCupState execute(WaterCupState s) {
                
        
    }*/
    public boolean available(WaterCupState s) {
            if((s.getCapacity1()>0) && (s.getCapacity1()<=3) && (s.getCapacity2()<4))
                    return true;
            else
            		return false;
    }

    public String toString(){
        return "Emptying 1 in 2";
    }
        
}
